package gui.client.panels;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JList;
import java.awt.Rectangle;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;

public class JCatalogCategoryPanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel menuLabel = null;
	private JButton plantsButton = null;
	private JButton flowersDesignButton = null;
	private JButton weddingFlowersButton = null;
	private JButton flowersBouquetButton = null;
	private JButton customOrderButton = null;
	private JCompanyLogoPanel logoCompanyLogoPanel = null;
	private JLabel companyLogoImageLabel = null;
	private JLabel companyLogoNameLabel = null;
	/**
	 * This is the default constructor
	 */
	public JCatalogCategoryPanel() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		companyLogoNameLabel = new JLabel();
		companyLogoNameLabel.setBounds(new Rectangle(26, 402, 161, 32));
		companyLogoNameLabel.setFont(new Font("Script MT Bold", Font.ITALIC, 24));
		companyLogoNameLabel.setForeground(Color.red);
		companyLogoNameLabel.setText("a flower for you");
		Icon companyLogo = new ImageIcon(getClass().getResource("companyLogoTiny.png"));
		companyLogoImageLabel = new JLabel();
		companyLogoImageLabel.setBounds(new Rectangle(74, 253, 81, 142));
		companyLogoImageLabel.setText("");
		companyLogoImageLabel.setIcon(companyLogo);
		menuLabel = new JLabel();
		menuLabel.setBounds(new Rectangle(90, 20, 48, 20));
		menuLabel.setHorizontalTextPosition(SwingConstants.CENTER);
		menuLabel.setText("Menu");
		this.setSize(211, 533);
		this.setLayout(null);
		this.setBackground(new Color(51, 102, 255));
		this.add(menuLabel, null);
		this.add(getPlantsButton(), null);
		this.add(getFlowersDesignButton(), null);
		this.add(getWeddingFlowersButton(), null);
		this.add(getFlowersBouquetButton(), null);
		this.add(getCustomOrderButton(), null);
		this.add(companyLogoImageLabel, null);
		this.add(companyLogoNameLabel, null);
	}

	/**
	 * This method initializes plantsButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getPlantsButton() {
		if (plantsButton == null) {
			plantsButton = new JButton();
			plantsButton.setBounds(new Rectangle(14, 139, 183, 20));
			plantsButton.setText("Plants");
		}
		return plantsButton;
	}

	/**
	 * This method initializes flowersDesignButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getFlowersDesignButton() {
		if (flowersDesignButton == null) {
			flowersDesignButton = new JButton();
			flowersDesignButton.setBounds(new Rectangle(14, 99, 183, 20));
			flowersDesignButton.setText("Flowers Design");
		}
		return flowersDesignButton;
	}

	/**
	 * This method initializes weddingFlowersButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getWeddingFlowersButton() {
		if (weddingFlowersButton == null) {
			weddingFlowersButton = new JButton();
			weddingFlowersButton.setBounds(new Rectangle(15, 179, 183, 20));
			weddingFlowersButton.setText("Wedding Flowers");
		}
		return weddingFlowersButton;
	}

	/**
	 * This method initializes flowersBouquetButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getFlowersBouquetButton() {
		if (flowersBouquetButton == null) {
			flowersBouquetButton = new JButton();
			flowersBouquetButton.setBounds(new Rectangle(15, 219, 183, 20));
			flowersBouquetButton.setText("Flowers Bouquet");
		}
		return flowersBouquetButton;
	}

	/**
	 * This method initializes customOrderButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getCustomOrderButton() {
		if (customOrderButton == null) {
			customOrderButton = new JButton();
			customOrderButton.setBounds(new Rectangle(15, 59, 183, 20));
			customOrderButton.setText("Custom Order");
		}
		return customOrderButton;
	}


}  //  @jve:decl-index=0:visual-constraint="10,10"
